#!/bin/bash
set -x 
exec &> /server/log/ubuntu_result.txt

#1.更新源
apt update
#2.安装ssh服务以及常用软件
apt install  openssh-server  net-tools vim make gcc git  curl -y
#3.安装php环境 php-redis扩展
apt install php7.4-cli php7.4-fpm php-redis  php7.4-dev  php7.4-mbstring php7.4-curl  -y
#4.部署redis
chmod +x /server/ldsinstall/install/redis.sh
/server/ldsinstall/install/redis.sh
#5.部署swools
 
#6.部署lds项目
/server/ldsinstall/kjcs.sh
#开机自启php.sh脚本 (没找到文件 而且已经有其他地方自启swoft)
#systemctl start php_sh.service
#systemctl enable  php_sh.service
